import { createPinia } from 'pinia';
import piniaPersist from '@/plugins/piniaPersist.ts';
import piniaDebounce from '@/plugins/piniaDebounce.ts';
const pinia = createPinia();
// 注册pinia持久化插件
pinia.use(piniaPersist());
// 注册pinia防抖插件
pinia.use(piniaDebounce({ wait: 300 }));
export default pinia;
